const { merge } = require("webpack-merge");
const webpackConfigBase = require('./webpack.config')
const { resolve } = require('path')

const htmlPublicPath = resolve(__dirname, 'devbuild')

module.exports = merge(webpackConfigBase, {
  output: {
    // 输出路径
    // __dirname nodejs的变量，代表当前文件的目录绝对路径
    path: htmlPublicPath,
    
    // publicPath: htmlPublicPath, // 解决 html中引入img的图片路径
  },
  mode: 'development', // 开发模式
})